<?php
/**
 *  作者：梦雨
 *  @ QQ50361804
 */
namespace app\admin\controller;
use app\api\model\Up as UpModel;
use think\Controller;
class Up extends Common
{
	
    function _initialize()
    {
        parent::_initialize();
        $this->model =new UpModel();
        
    }
    public function up()
    {
    	h('phpupadmina');
        if (!session('admin_name') || !session('admin_id')) {
            $this->error('亲！请登录');
        } else {
        return json($this->model->up('files'));
        }
    }
}